package com.blog4j.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog4j.user.entity.UserApplyOrganizationEntity;
import com.blog4j.user.vo.resp.ApplyJoinOrganizationListRespVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2024/8/9 23:55
 **/
@Mapper
public interface UserApplyOrganizationMapper extends BaseMapper<UserApplyOrganizationEntity> {
    /**
     * 获取用户申请加入组织的列表
     *
     * @param userName 申请人名称
     * @param organizationName 组织名称
     * @param approveStatus 审批状态
     * @return 组织的列表
     */
    List<ApplyJoinOrganizationListRespVo> applyJoinOrganizationList(@Param("userName") String userName,
                                                                    @Param("organizationName") String organizationName,
                                                                    @Param("approveStatus") Integer approveStatus);
}
